package org.decorator.ex1.expone;

import java.util.Date;

public class SumPrizeDecoraror extends Decorator{

	public SumPrizeDecoraror(Component c) {
		super(c);
	}
	
	public double calcPrize(String user, Date begin, Date end){
		double money = super.calcPrize(user, begin, end);
		
		double prize = 1000000 * 0.001;
		
		System.out.println(user + " 累积奖金 " + prize);
		return money + prize;
	}

}
